*,*::before, *::after {
  box-sizing: border-box;
}

body, ul, li{
  margin: 0;
  padding: 0;
}

.carousel{
  width: 100vw;
  height: 100vh;
  position: relative;
}

ul{
  list-style: none;
}

.slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: 200ms opacity ease-in-out;
  transition-delay: 200ms;
}

.slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide[data-active] {
  opacity: 1;
  z-index: 1;
  transition-delay: 0ms;
}

.carousel-button{
  position: absolute;
  background: none;
  border: none;
  font-size: 12px;
  top:50%;
  transform: translateY(-50%);
  cursor: pointer;
  border-radius: .25rem;
  padding:  .5rem;
  background-color: rgba(0,0,0,.1);
  z-index:2;
}

.carousel-button:hover,
.carousel-button:focus{
  color: #FFF;
  background-color: rgba(0,0,0,.2);
}

.carousel-button:focus{
  outline: 1px solid black;
}

.prev{
  left:1rem;
}

.next{
  right: 1rem;
}